package com.yupi.springbootinit.model.entity;

public class Node {
    private Long id;
    private String entity;
    private String name;

    // 默认构造函数
    public Node() {
    }

    // 带参数的构造函数
    public Node(Long id, String entity, String name) {
        this.id = id;
        this.entity = entity;
        this.name = name;
    }

    public Node(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    // Getter 和 Setter 方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEntity() {
        return entity;
    }

    public void setEntity(String entity) {
        this.entity = entity;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Node{" +
                "id=" + id +
                ", entity='" + entity + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
